package com.itheima.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.util.List;

@Data
public class Orders {
    private String id;
    private String number;
    private Integer status;
    private String userId;
    private String addressBookId;
    @TableField(fill = FieldFill.INSERT)
    private Long orderTime;
    @TableField(fill = FieldFill.INSERT)
    private Long checkoutTime;
    private Integer payMethod;
    private Integer amount;
    private String remark;
    private String userName;
    private String phone;
    private String address;
    private String consignee;
    @TableField(exist = false)
    private List<OrderDetails> orderDetails;
}
